package org.log4jconfig.xml.editor.utils;

import org.eclipse.core.runtime.Status;
import org.log4jconfig.xml.editor.Log4jConfigXmlEditorIntegrationPlugin;

public class Logger {

	public static void error(String message, Throwable t) {
		Log4jConfigXmlEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.ERROR, Log4jConfigXmlEditorIntegrationPlugin.PLUGIN_ID, message, t));
	}

	public static void warn(String message) {
		Log4jConfigXmlEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.WARNING, Log4jConfigXmlEditorIntegrationPlugin.PLUGIN_ID, message));
	}

	public static void info(String message) {
		Log4jConfigXmlEditorIntegrationPlugin.getDefault().getLog().log(
				new Status(Status.INFO, Log4jConfigXmlEditorIntegrationPlugin.PLUGIN_ID, message));
	}

}
